import axios from "axios";
import instance from "@/utils/axios";

// 引入每个人的api模块
import bian from "./api-modules/bian";
import li from "./api-modules/li";
import zhai from "./api-modules/zhai";
import duan from "./api-modules/duan";
import yan from "./api-modules/yan";

// 设置最终打包域名段
axios.defaults.baseURL = "";

export default {
  setLogin(data) {
    return instance.request({
      url: "/api/userlogin/loginname.do",
      method: "POST",
      data,
    });
  },
  // checkUser(params) {
  //   return axios.post("/api/userlogin/checkphone.do", { params });
  // },
  ...bian,
  ...li,
  ...zhai,
  ...duan,
  ...yan,
};
/*
  import Api from "./api"
  let {data}=await Api.checkUser({userName:"张三"})
  console.log(data)
*/
